﻿using Wechat.Corp.Configurations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Wechat.Corp.Models
{
    /// <summary>
    /// 
    /// </summary>
    public class WechatCorpSecure : IWechatCorpConfiguration
    {
        /// <summary>
        /// 
        /// </summary>
        public string CorpID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Default { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public WechatAgent DefaultAgent
        {
            get
            {
                return this.Agents[this.Default];
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public WechatAgentCollection Agents { get; set; }
        /// <summary>
        /// 
        /// </summary>
        IWechatAgentCollection IWechatCorpConfiguration.Agents
        {
            get
            {
                return this.Agents;
            }
        }

    }
}
